﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    /// <summary>
    /// 其它资金明细类型
    /// </summary>
    public enum OtherMoneyDetailType
    {
        /// <summary>
        /// 方案撤消
        /// </summary>
        SchemeCancle = 1001,
        /// <summary>
        /// 追号任务撤消
        /// </summary>
        ChaseTaskCancle = 1002,
        /// <summary>
        /// 追号明细撤消
        /// </summary>
        ChaseDetailCancle = 1003,


        /// <summary>
        /// 回滚过期撤消方案
        /// </summary>
        BackTimeOutScheme = 2001,

        /// <summary>
        /// 给下级充值
        /// </summary>
        AddSubMoney = 2002,


        /// <summary>
        /// 升级奖励奖金
        /// </summary>
        UpRankAddSelf = 3001,
        /// <summary>
        /// 下级升级奖励奖金
        /// </summary>
        UpRankAddCommand = 3002,
    }

    public static class OtherMoneyDetailTypeEx
    {
        public static string GetName(this OtherMoneyDetailType type)
        {
            switch (type)
            {
                case OtherMoneyDetailType.SchemeCancle:
                    return "方案撤消";
                case OtherMoneyDetailType.ChaseTaskCancle:
                    return "追号任务撤消";
                case OtherMoneyDetailType.ChaseDetailCancle:
                    return "追号明细撤消";
                case OtherMoneyDetailType.BackTimeOutScheme:
                    return "回滚过期撤消方案";
                case OtherMoneyDetailType.AddSubMoney:
                    return "给下级充值";

                case OtherMoneyDetailType.UpRankAddSelf:
                    return "升级奖励奖金";
                case OtherMoneyDetailType.UpRankAddCommand:
                    return "下级升级奖励奖金";
                default:
                    return string.Empty;
            }
        }
    }
}
